package com.nbjtjc.safe.mapper.sys;

import com.nbjtjc.safe.model.sys.SysDutyType;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysDutyTypeMapper extends MyMapper<SysDutyType> {

    @Select( "select count(*) from sys_duty_type where code_num =#{typeCode}")
    int typeCodeCount(@Param("typeCode") String typeCode);
}